<template>
  <div>
    <p>我是ref的子组件</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      num: 666
    }
  },
  methods: {
    showNum() {
      console.log(this.num);
    }
  }
}
</script>

<style>

</style>